package org.theSeed;

import cn.hutool.extra.spring.SpringUtil;
import cn.hutool.json.JSONUtil;
import org.redisson.api.RBucket;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ConfigurableApplicationContext;
import org.theSeed.demo.RedisTestService;
import org.theSeed.redisIntegration.utils.RedisUtil;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

@EnableCaching
@SpringBootApplication
public class Main {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(Main.class, args);

        RedisTestService bean = SpringUtil.getBean(RedisTestService.class);
        String stringObjectMap = bean.test1(1);
        System.out.println(JSONUtil.toJsonStr(stringObjectMap));
    }
}